/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.metadata;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Fernando
 */
public class Config {


    @XStreamImplicit(itemFieldName="MediaItem")
    private List<MediaItem> items = new ArrayList<MediaItem>();

    public Config(){
    }

    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        for (MediaItem mediaItem : items){
            sb.append(mediaItem.toString() + "\n");
        }
        return sb.toString();
    }

    

    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    public List<MediaItem> getItems() {
        return items;
    }

    public void setItems(List<MediaItem> items) {
        this.items = items;
    }
    // </editor-fold>


}
